package com.wicket.okrbff.biz.service.dto.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffCycleTypeInstanceDto
 * @使用场景
 */
@Data
public class BffCycleTypeInstanceDto implements Serializable {

    /**
     * 周期类型实例标识:
     */
    @ApiModelProperty("周期类型实例标识")
    private String cycleTypeInstanceCode;

    /**
     * 周期类型实例简称:
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;
    /**
     * 周期类型实例ID:
     */
    @ApiModelProperty("周期类型实例ID")
    private String cycleTypeInstanceId;
    /**
     * 周期类型实例名称:
     */
    @ApiModelProperty("周期类型实例名称")
    private String cycleStandardName;
    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffCycleTypeInstanceDto that = (BffCycleTypeInstanceDto) o;
      return  cycleTypeInstanceCode == that.cycleTypeInstanceCode&&cycleNumberShortName == that.cycleNumberShortName&&cycleTypeInstanceId == that.cycleTypeInstanceId&&cycleStandardName == that.cycleStandardName&&orderNumber == that.orderNumber&&subjectLifeCycle == that.subjectLifeCycle&&isArchive == that.isArchive;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), cycleTypeInstanceCode,cycleNumberShortName,cycleTypeInstanceId,cycleStandardName,orderNumber,subjectLifeCycle,isArchive);
    }

}
